<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>我的设备</title>
    <link rel="stylesheet" href="${root}/Static/css/pintuer.css">
    <link rel="stylesheet" href="${root}/Static/css/admin.css">
    <script src="${root}/Static/js/jquery.js"></script>
    <script src="${root}/Static/js/pintuer.js"></script>
    <script src="${root}/Static/js/respond.js"></script>
    <script src="${root}/Static/js/admin.js"></script>
</head>

<body>
<div class="admin-panel">
    <div class="panel">
            <div class="panel-head">
                <h3 class="float-left"><b>设备列表</b></h3>
                <div class="toolbar">
                </div>
                <div class="clearfix"></div>
            </div>
            <table class="table table-hover table-condensed">            
                <tr>
                	<th>ID</th>
                    <th>用户ID</th>
                    <th>名称</th>
                    <th>逻辑id</th>
                    <th>所在区域</th>
                    <th>状态</th>                   
                </tr>
                <? for(data in @page.getList()){?>
                <tr>
                		<td>${data.id}</td>
                        <td>${data.user_id}</td>
                        <td>${data.name}</td>
                        <td>${data.logic_id}</td>
                        <td>${data.scene_name}</td>
                        <td>${data.status}</td>
                        <td>                       
                        	<a class="button border-blue button-little icon-play" href="${root}/Weixin/control?logic_id=${data.logic_id}&action=open"> 开启</a>                            
                            <a class="button border-red  button-little icon-stop" href="${root}/Weixin/control?logic_id=${data.logic_id}&action=close"> 关闭</a>
                        </td>
                    </tr>
                <?  } ?>            
            </table>		
        <div class="panel-foot text-center">          
        </div>
    </div>
</body>
</html>